package cn.dengta.webapp.user.entity;

import cn.dengta.webapp.base.entity.TimeBasedEntity;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 用户充值记录
 *
 * @author zxy
 * @since 2022-07-05
 */
@Setter
@Getter
@Accessors(chain = true)
@TableName(value = "dt_user_vip_recharge_log", autoResultMap = true)
public class UserVipRechargeLog extends TimeBasedEntity {

	private static final long serialVersionUID = 1L;
	/** 充值id标识 tr_recharge_log表主键 */
	private Long rechargeId;
	/**
	 * 充值类型
	 *
	 * @see
	 */
	private Integer rechargeType;
	/** 用户id */
	private Long userId;
	/** 扩展数据 */
	@TableField(value = "extend", typeHandler = JacksonTypeHandler.class)
	private JSONObject extend;

	public static final String RECHARGE_ID = "recharge_id";
	public static final String RECHARGE_TYPE = "recharge_type";
	public static final String USER_ID = "user_id";
	public static final String EXTEND = "extend";

}
